/**
 * 
 * @param {Array} arr1 原数组
 * @param {Array} arr2 比较数组
 * @returns {Array} 返回arr1中arr2不存在的元素
 */
export function arrayDiff(arr1, arr2) {
  const diff = []
  for (let i = 0; i < arr1.length; i++) {
    const item = arr1[i];
    if (!arr2.includes(item)) {
      diff.push(item);
    }
  }
  return diff
}
